package examples.photo_swipe.application ;

import divtastic.js.DisplayDiv ;
import divtastic.js.Divtastic ;
import divtastic.js.application.views.WindowView ;
import examples.photo_swipe.views.PicSwipeView;


class Controller
{
    
    
    private var _holder :DisplayDiv;
    
    
    
    public function new( holder_: DisplayDiv )
    {
        
        _holder                 = holder_ ;
        var photoWindow         = new Divtastic() ;
        _holder.addChild( photoWindow ) ;
        var windowView          = new WindowView( photoWindow, 'Picture Swipe', 49, 129, 320, 330, '#9d9e6a' ) ;
        new PicSwipeView( photoWindow, windowView ) ;
        
    }
    
    
}